﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Astronergy.MES.App.Library.Logger
{
    public class LogLightConsole
    {
        public static EunmMsgType LogLevel = EunmMsgType.Debug;

        public static void WriteLog(string sInfo, EunmMsgType type)
        {
            if (type <= LogLevel)
            {
                Trace.WriteLine(new LogMsg(sInfo, type));
            }
        }
    }
}
